.. _CW Structures: ========================== CW Structures ========================== .. toctree:: :maxdepth: 1 * :ref:`CWarp` * :ref:`CWeaponIdentification` * :ref:`CWeather` * :ref:`CWildSurge` * :ref:`CWnd` * :ref:`CWorldMap` * :ref:`CWorldMapArea` * :ref:`CWorldMapData` * :ref:`CWorldMapFile` * :ref:`CWorldMapHeader` * :ref:`CWorldMapLinks` .. _CWarp: CWarp ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Used by the :ref:`CWarp Class` +------------+----------+----------------------------------------+-------------------------------+ | **Offset** | **Size** | **Type** | **Field** | +------------+----------+----------------------------------------+-------------------------------+ | 0x00 | 4 | :ref:`CObject` | m_cObject | +------------+----------+----------------------------------------+-------------------------------+ | 0x04 | 4 | :ref:`CWarp`\* | pLastEngine | +------------+----------+----------------------------------------+-------------------------------+ | 0x08 | 28 | :ref:`CObList` | lTimers | +------------+----------+----------------------------------------+-------------------------------+ ---- .. _CWeaponIdentification: CWeaponIdentification ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------+----------------------------------------+-------------------------------+ | **Offset** | **Size** | **Type** | **Field** | +------------+----------+----------------------------------------+-------------------------------+ | 0x00 | 2 | unsigned short | m_itemType | +------------+----------+----------------------------------------+-------------------------------+ | | 2 | | ```` | +------------+----------+----------------------------------------+-------------------------------+ | 0x04 | 4 | unsigned long | m_itemFlags | +------------+----------+----------------------------------------+-------------------------------+ | 0x08 | 4 | unsigned long | m_itemFlagMask | +------------+----------+----------------------------------------+-------------------------------+ | 0x0C | 4 | unsigned long | m_attributes | +------------+----------+----------------------------------------+-------------------------------+ ---- .. _CWeather: CWeather ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Used by the :ref:`CWeather Class` +------------+----------+----------------------------------------+-------------------------------+ | **Offset** | **Size** | **Type** | **Field** | +------------+----------+----------------------------------------+-------------------------------+ | 0x00 | 1 | unsigned char | m_bOverCast | +------------+----------+----------------------------------------+-------------------------------+ | | 1 | | ```` | +------------+----------+----------------------------------------+-------------------------------+ | 0x02 | 2 | unsigned short | m_nLightningFreq | +------------+----------+----------------------------------------+-------------------------------+ | 0x04 | 2 | unsigned short | m_nCurrentWeather | +------------+----------+----------------------------------------+-------------------------------+ | 0x06 | 2 | unsigned short | m_nWeatherLevel | +------------+----------+----------------------------------------+-------------------------------+ | 0x08 | 4 | unsigned long | m_nWeatherEndTime | +------------+----------+----------------------------------------+-------------------------------+ | 0x0C | 4 | unsigned long | m_nWeatherStageEndTime | +------------+----------+----------------------------------------+-------------------------------+ | 0x10 | 4 | unsigned long | m_nWeatherDuration | +------------+----------+----------------------------------------+-------------------------------+ | 0x14 | 4 | unsigned long | m_nLastTimeChecked | +------------+----------+----------------------------------------+-------------------------------+ | 0x18 | 2 | unsigned short | m_nWindLevel | +------------+----------+----------------------------------------+-------------------------------+ | | 2 | | ```` | +------------+----------+----------------------------------------+-------------------------------+ | 0x1C | 4 | unsigned long | m_rgbCurrentOverCastColor | +------------+----------+----------------------------------------+-------------------------------+ | 0x20 | 4 | unsigned long | m_nDurationCounter | +------------+----------+----------------------------------------+-------------------------------+ | 0x24 | 24 | :ref:`CSnowStorm` | m_snowStorm | +------------+----------+----------------------------------------+-------------------------------+ | 0x3C | 32 | :ref:`CRainStorm` | m_rainStorm | +------------+----------+----------------------------------------+-------------------------------+ | 0x5C | 124 | :ref:`CFog` | m_fog | +------------+----------+----------------------------------------+-------------------------------+ | 0xD8 | 20 | :ref:`CSound` | m_sndRain | +------------+----------+----------------------------------------+-------------------------------+ | 0xEC | 20 | :ref:`CSound` | m_sndWind | +------------+----------+----------------------------------------+-------------------------------+ | 0x100 | 1 | unsigned char | m_bWindOn | +------------+----------+----------------------------------------+-------------------------------+ | 0x101 | 1 | unsigned char | m_bUpgrading | +------------+----------+----------------------------------------+-------------------------------+ | | 2 | | ```` | +------------+----------+----------------------------------------+-------------------------------+ | 0x104 | 4 | unsigned long | m_nNextTimeToStartChecking | +------------+----------+----------------------------------------+-------------------------------+ | 0x108 | 4 | unsigned long | m_nWindVolumeLevel | +------------+----------+----------------------------------------+-------------------------------+ | 0x10C | 4 | unsigned long | m_nRainVolumeLevel | +------------+----------+----------------------------------------+-------------------------------+ | 0x110 | 1 | unsigned char | m_bReInitialize | +------------+----------+----------------------------------------+-------------------------------+ | | 3 | | ```` | +------------+----------+----------------------------------------+-------------------------------+ ---- .. _CWildSurge: CWildSurge ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------+----------------------------------------+-------------------------------+ | **Offset** | **Size** | **Type** | **Field** | +------------+----------+----------------------------------------+-------------------------------+ | 0x00 | 2 | unsigned short | m_projectileOverride | +------------+----------+----------------------------------------+-------------------------------+ | | 2 | | ```` | +------------+----------+----------------------------------------+-------------------------------+ | 0x04 | 4 | unsigned long | m_projectileSpeedMod | +------------+----------+----------------------------------------+-------------------------------+ | 0x08 | 4 | unsigned long | m_durationMod | +------------+----------+----------------------------------------+-------------------------------+ | 0x0C | 4 | unsigned long | m_levelMod | +------------+----------+----------------------------------------+-------------------------------+ | 0x10 | 4 | unsigned long | m_bApplyEffects | +------------+----------+----------------------------------------+-------------------------------+ | 0x14 | 4 | long | m_saveMod | +------------+----------+----------------------------------------+-------------------------------+ | 0x18 | 4 | int | m_bClearTargetRestriction | +------------+----------+----------------------------------------+-------------------------------+ | 0x1C | 4 | int | m_bClearSelfRestriction | +------------+----------+----------------------------------------+-------------------------------+ ---- .. _CWnd: CWnd ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------+----------------------------------------+-------------------------------+ | **Offset** | **Size** | **Type** | **Field** | +------------+----------+----------------------------------------+-------------------------------+ | 0x00 | 4 | :ref:`CCmdTarget` | m_cCmdTarget | +------------+----------+----------------------------------------+-------------------------------+ | 0x04 | 4 | HWND\* | m_hWnd | +------------+----------+----------------------------------------+-------------------------------+ ---- .. _CWorldMap: CWorldMap ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Used by the :ref:`CWorldMap Class` +------------+----------+-------------------------------------------+-------------------------------+ | **Offset** | **Size** | **Type** | **Field** | +------------+----------+-------------------------------------------+-------------------------------+ | 0x00 | 8 | :ref:`CResRef` | m_cResRef | +------------+----------+-------------------------------------------+-------------------------------+ | 0x08 | 8 | :ref:`CWorldMapHeader` | m_cHeader | +------------+----------+-------------------------------------------+-------------------------------+ | 0x10 | 4 | :ref:`CWorldMapData`\* | m_pData | +------------+----------+-------------------------------------------+-------------------------------+ | 0x14 | 4 | :ref:`CWorldMapArea`\*\* | m_ppAreas | +------------+----------+-------------------------------------------+-------------------------------+ | 0x18 | 4 | :ref:`CWorldMapLinks`\*\* | m_ppLinks | +------------+----------+-------------------------------------------+-------------------------------+ ---- .. _CWorldMapArea: CWorldMapArea ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------+----------------------------------------+-------------------------------+ | **Offset** | **Size** | **Type** | **Field** | +------------+----------+----------------------------------------+-------------------------------+ | 0x00 | 8 | unsigned char | m_resCurrentArea[8] | +------------+----------+----------------------------------------+-------------------------------+ | 0x08 | 8 | unsigned char | m_resOriginalArea[8] | +------------+----------+----------------------------------------+-------------------------------+ | 0x10 | 32 | char | m_strName[32] | +------------+----------+----------------------------------------+-------------------------------+ | 0x30 | 4 | unsigned long | m_dwFlags | +------------+----------+----------------------------------------+-------------------------------+ | 0x34 | 4 | unsigned long | m_sequence | +------------+----------+----------------------------------------+-------------------------------+ | 0x38 | 4 | unsigned long | m_mapLocationX | +------------+----------+----------------------------------------+-------------------------------+ | 0x3C | 4 | unsigned long | m_mapLocationY | +------------+----------+----------------------------------------+-------------------------------+ | 0x40 | 4 | unsigned long | m_strLabel | +------------+----------+----------------------------------------+-------------------------------+ | 0x44 | 4 | unsigned long | m_strAreaName | +------------+----------+----------------------------------------+-------------------------------+ | 0x48 | 8 | unsigned char | m_resAreaLoadMosaic[8] | +------------+----------+----------------------------------------+-------------------------------+ | 0x50 | 4 | unsigned long | m_nNorthEdgeStartingLink | +------------+----------+----------------------------------------+-------------------------------+ | 0x54 | 4 | unsigned long | m_nNorthEdgeCount | +------------+----------+----------------------------------------+-------------------------------+ | 0x58 | 4 | unsigned long | m_nWestEdgeStartingLink | +------------+----------+----------------------------------------+-------------------------------+ | 0x5C | 4 | unsigned long | m_nWestEdgeCount | +------------+----------+----------------------------------------+-------------------------------+ | 0x60 | 4 | unsigned long | m_nSouthEdgeStartingLink | +------------+----------+----------------------------------------+-------------------------------+ | 0x64 | 4 | unsigned long | m_nSouthEdgeCount | +------------+----------+----------------------------------------+-------------------------------+ | 0x68 | 4 | unsigned long | m_nEastEdgeStartingLink | +------------+----------+----------------------------------------+-------------------------------+ | 0x6C | 4 | unsigned long | m_nEastEdgeCount | +------------+----------+----------------------------------------+-------------------------------+ | 0x70 | 128 | unsigned long | nUnused[32] | +------------+----------+----------------------------------------+-------------------------------+ ---- .. _CWorldMapData: CWorldMapData ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------+----------------------------------------+-------------------------------+ | **Offset** | **Size** | **Type** | **Field** | +------------+----------+----------------------------------------+-------------------------------+ | 0x00 | 8 | unsigned char | m_resMosaic[8] | +------------+----------+----------------------------------------+-------------------------------+ | 0x08 | 4 | unsigned long | m_nWidth | +------------+----------+----------------------------------------+-------------------------------+ | 0x0C | 4 | unsigned long | m_nHeight | +------------+----------+----------------------------------------+-------------------------------+ | 0x10 | 4 | unsigned long | m_nMapID | +------------+----------+----------------------------------------+-------------------------------+ | 0x14 | 4 | unsigned long | m_strTitle | +------------+----------+----------------------------------------+-------------------------------+ | 0x18 | 4 | unsigned long | m_nStartCenteredOnX | +------------+----------+----------------------------------------+-------------------------------+ | 0x1C | 4 | unsigned long | m_nStartCenteredOnY | +------------+----------+----------------------------------------+-------------------------------+ | 0x20 | 4 | unsigned long | m_nAreas | +------------+----------+----------------------------------------+-------------------------------+ | 0x24 | 4 | unsigned long | m_nAreasOffset | +------------+----------+----------------------------------------+-------------------------------+ | 0x28 | 4 | unsigned long | m_nOffsetToLinks | +------------+----------+----------------------------------------+-------------------------------+ | 0x2C | 4 | unsigned long | m_nLinks | +------------+----------+----------------------------------------+-------------------------------+ | 0x30 | 8 | unsigned char | m_resAreaIcons[8] | +------------+----------+----------------------------------------+-------------------------------+ | 0x38 | 4 | unsigned long | m_dwFlags | +------------+----------+----------------------------------------+-------------------------------+ | 0x3C | 124 | unsigned long | nUnused[31] | +------------+----------+----------------------------------------+-------------------------------+ ---- .. _CWorldMapFile: CWorldMapFile ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------+----------------------------------------+-------------------------------+ | **Offset** | **Size** | **Type** | **Field** | +------------+----------+----------------------------------------+-------------------------------+ | 0x00 | 12 | :ref:`CResHelper` | m_cResHelper | +------------+----------+----------------------------------------+-------------------------------+ ---- .. _CWorldMapHeader: CWorldMapHeader ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------+----------------------------------------+-------------------------------+ | **Offset** | **Size** | **Type** | **Field** | +------------+----------+----------------------------------------+-------------------------------+ | 0x00 | 4 | unsigned long | m_nMapCount | +------------+----------+----------------------------------------+-------------------------------+ | 0x04 | 4 | unsigned long | m_nMapOffset | +------------+----------+----------------------------------------+-------------------------------+ ---- .. _CWorldMapLinks: CWorldMapLinks ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------+----------+----------------------------------------+-------------------------------+ | **Offset** | **Size** | **Type** | **Field** | +------------+----------+----------------------------------------+-------------------------------+ | 0x00 | 4 | unsigned long | m_nArea | +------------+----------+----------------------------------------+-------------------------------+ | 0x04 | 32 | char | m_entryPoint[32] | +------------+----------+----------------------------------------+-------------------------------+ | 0x24 | 4 | unsigned long | m_nDistanceScale | +------------+----------+----------------------------------------+-------------------------------+ | 0x28 | 4 | unsigned long | m_dwLinkFlags | +------------+----------+----------------------------------------+-------------------------------+ | 0x2C | 8 | unsigned char | m_resRandomEncounterArea0[8] | +------------+----------+----------------------------------------+-------------------------------+ | 0x34 | 8 | unsigned char | m_resRandomEncounterArea1[8] | +------------+----------+----------------------------------------+-------------------------------+ | 0x3C | 8 | unsigned char | m_resRandomEncounterArea2[8] | +------------+----------+----------------------------------------+-------------------------------+ | 0x44 | 8 | unsigned char | m_resRandomEncounterArea3[8] | +------------+----------+----------------------------------------+-------------------------------+ | 0x4C | 8 | unsigned char | m_resRandomEncounterArea4[8] | +------------+----------+----------------------------------------+-------------------------------+ | 0x54 | 4 | unsigned long | m_nEncounterProbability | +------------+----------+----------------------------------------+-------------------------------+ | 0x58 | 128 | unsigned long | nUnused[32] | +------------+----------+----------------------------------------+-------------------------------+